package com.bwie.service;

import com.bwie.domain.TbProd;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.ArrayList;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2024/10/16 14:31
 */


public interface TbProdService {
    R getProdList(PageInfoVo pageInfoVo);

    R checkStock(Integer prodId, Integer prodCount);

    R addProd(TbProd tbProd);

    R delProd(Integer prodId);

    R updateProd(TbProd tbProd);

    R deleteAllProd(ArrayList<Integer> prodIds);

    R doUpProd(Integer prodId, Integer flag);

    R doUpAllProd(ArrayList<Integer> prodIds);

    R uploadProdImg(MultipartFile file);

    R getProdStock();

    R getProdPrice();
}
